package com.cheer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheer.entity.ReferenceFileEntity;
import com.cheer.param.ReferenceFileDownParam;
import com.cheer.param.ReferenceInOrUpParam;
import com.cheer.vo.DocumentVO;
import com.cheer.vo.ReferenceListVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 台账文档表
 *
 * @author chufangzheng
 * @email 1280251739@qq.com
 * @date 2022-02-16 08:58:00
 */
public interface ReferenceFileService extends IService<ReferenceFileEntity> {

    DocumentVO upload(Long accountId, MultipartFile file, Integer fileType) throws IOException;

    void batchSave(List<ReferenceFileEntity> list, Long id);

    void setVO(ReferenceListVO referenceListVO);

    String down(ReferenceFileDownParam referenceFileDownParam);

    void preview(HttpServletResponse response, Long id);

    void uploadRecommend(String fileUrl, Long id);
}

